With an agitated mind, he couldn't focus on the task.
С взволнованным умом он не мог сосредоточиться на задаче.
Definitions
A state of mental unrest or disturbance characterized by anxiety, confusion, or emotional turmoil, often leading to difficulty in focusing or making decisions.